/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Utils;

import java.awt.Point;
import java.util.Comparator;



/**
 *
 * @author borysfan
 */
public class PointXComparator implements Comparator<Point> {

    public int compare(Point o1, Point o2) {
        if(o1.x==o2.x) return 0;
        else if(o1.x>o2.x) return 1;
        else return -1;
    }



}
